export default function define(Python: Blockly.BlockGenerators) {
  Python['import_time'] = function (block) {
    const code = 'import time' + '\n';
    return code;
  };
  
  Python['get_time'] = function (block) {
    const code = 'time.time()';
    return [code, Blockly.Python.ORDER_ATOMIC];
  };
  
  Python['get_times'] = function (block) {
    var text = block.getFieldValue('temp');
    const code = 'str(' + 'time.localtime()' + '[' + text + ']' + ')';
    return [code, Blockly.Python.ORDER_ATOMIC];
  };


}
